﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="contactus.aspx.cs" Inherits="contactus" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">        
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div id="AllOb-Table">
    <div id="AllTitle">聯絡我們</div>
    <div id="ALL-Html2">請您填妥您的問題與聯絡資料，我們會由專人為您回覆</div>
    <asp:Panel ID="PanelUI" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="Join-Table">
      <tr>
        <td width="95">您的姓名：</td>
        <td width="485">
            <asp:TextBox ID="txtContactName" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入姓名"
                  ControlToValidate="txtContactName" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>電子信箱：</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請輸入電子信箱"
                  ControlToValidate="txtEmail" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ValidationGroup="Save" ErrorMessage="電子信箱格式不正確"
                  Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td>您的電話：</td>
        <td>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="請輸入電話"
                  ControlToValidate="txtPhone" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>信件主旨：</td>
        <td>
            <asp:TextBox ID="txtTitle" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="請輸入主旨"
                  ControlToValidate="txtTitle" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td valign="top">信件內容：</td>
        <td>
            <asp:TextBox ID="txtHtmlContent" runat="server" width="300px" rows="5" CssClass="input-a" TextMode="MultiLine"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="請輸入信件內容"
                  ControlToValidate="txtHtmlContent" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td height="56" colspan="2" align="center" valign="top">
        <asp:ImageButton ID="btnSend" runat="server" onclick="btnSend_Click" ImageUrl="image/enter.png" Width="105" Height="30" ValidationGroup="Save"/>
        　<a href="contactus.aspx"><img src="image/delete.png" width="105" height="30"></a></td>
      </tr>
    </table>
    </asp:Panel>
  </div>
  <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Save" 
        ShowMessageBox="True" ShowSummary="False"/>  
</asp:Content>

